package com.yitiao.socket.chatroom;

import java.net.Socket;
import java.nio.ByteBuffer;
import java.nio.channels.Selector;
import java.nio.channels.SocketChannel;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;

public class MyClient {
    public Socket client;

    public SocketChannel nioClient;

    public String name;

    public volatile boolean isQuit = false;

    public ByteBuffer rBuffer = ByteBuffer.allocate(CommonConst.BUFFER);
    public ByteBuffer wBuffer = ByteBuffer.allocate(CommonConst.BUFFER);
    public Selector selector;
    public Charset charset = StandardCharsets.UTF_8;

    public void send(String s) {
    }

    public void close() {
    }
}
